package com.lds.config.center.server.mcp.common.config;

import com.lds.config.center.server.mcp.server.EnvMcpServer;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class McpServerConfig {
    @Bean
    public ToolCallbackProvider toolCallbackProvider(EnvMcpServer envMcpServer) {
        return MethodToolCallbackProvider.builder()
                .toolObjects(envMcpServer)
                .build();
    }
}
